<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>员工管理系统 - 登录</title>
    <style>
        .login-container { width: 300px; margin: 100px auto; }
        .error { color: red; }
        div { margin-bottom: 10px; }
        label { display: inline-block; width: 80px; }
    </style>
</head>
<body>
<div class="login-container">
    <h2>员工管理系统</h2>
    <form action="${pageContext.request.contextPath}/login" method="post">
        <div>
            <label>用户名:</label>
            <input type="text" name="username" required>
        </div>
        <div>
            <label>密码:</label>
            <input type="password" name="password" required>
        </div>
        <div class="error">${error}</div>
        <div>
            <button type="submit">登录</button>
        </div>
    </form>
</div>
</body>
</html>